﻿#ifndef CELL_H
#define CELL_H

#include <QGraphicsRectItem>
#include <QColor>
#include <QInputDialog>
#include <QGraphicsTextItem>
#include <QGraphicsSceneMouseEvent>

class Cell : public QObject
{
    Q_OBJECT
public:
    explicit Cell(int wX, int wY, QColor color);
    ~Cell();
    void getChar(int key, QString str);

public:
    int X, Y;
    QString colorname;
    QGraphicsRectItem* rect;
    QGraphicsTextItem* cap;
    QGraphicsTextItem* ans;
    QInputDialog* msgBox;
    QList<int> tips;

signals:
    void insertedChar();

public slots:
    void insertChar();
};
#endif // CELL_H
